package com.cloud.base.annotation;

import com.cloud.base.type.RequestFormat;
import org.springframework.http.HttpMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author liuyuan
 * */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiMapping {
    /**
     * Api的Path
     */
    String value();
    /**
     * 请求方法
     */
    HttpMethod method() default HttpMethod.POST;
    /**
     * 请求数据类型
     * */
    RequestFormat format() default RequestFormat.JSON;




}
